﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace PerformanceAssessment.Models
{
    public class SkillAssessment
    {
        [Key, Column(Order = 1)]
        [ForeignKey("Skill")]
        public int IdSkill { get; set; }
        [Key, Column(Order = 2)]
        [ForeignKey("Assessment")]
        public int IdAssessment { get; set; }
        [Range(0,4, ErrorMessage="Score must be an integer between 0 and 4.")]
        [Display(Name="Score")]
        
        public int? EmployeeScore { get; set; }
        [Range(0, 4, ErrorMessage = "Score must be an integer between 0 and 4.")]
        [Display(Name = "Score")]
        public int? ManagerScore { get; set; }
        public string EmployeeComments { get; set; }
        public string ManagerComments { get; set; }
        public int DisplayOrder { get; set; }

        public virtual Assessment Assessment { get; set; }
        public virtual Skill Skill { get; set; }
    }
}